Skip to content

fix: Prevent internal span creation when root exit variable is set#729

Closed
CagriYonca wants to merge 1 commit into
mainfrom
fix/internal-spans
Closed

fix: Prevent internal span creation when root exit variable is set#729
CagriYonca wants to merge 1 commit into
mainfrom
fix/internal-spans

Conversation

@CagriYonca
Copy link
Copy Markdown
Contributor

Internal spans are being created by internal http calls of the host. I've adapted urllib3 to prevent this issue.

@CagriYonca CagriYonca self-assigned this May 7, 2025
@CagriYonca CagriYonca requested a review from a team as a code owner May 7, 2025 10:51
@CagriYonca CagriYonca added the bug label May 7, 2025
if (
tracing_is_off()
or (span_name == "boto3")
or (agent.options.allow_exit_as_root and "com.instana" in kwargs.get("url"))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That works, but it will block all spans pointing to any URL containing "com.instana", and this can cause missing spans in the future.

Why not revisit the PR #562 and supress all internal calls?

@CagriYonca CagriYonca closed this May 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants